function gotop(scrollTop) {
    if (scrollTop > 0) {
        document.body.scrollTop = document.documentElement.scrollTop = 0;
    }
}
function handleScroll() {
    const scrollTop =
        window.pageYOffset ||
        document.documentElement.scrollTop ||
        document.body.scrollTop;
    return scrollTop
}
export { gotop, handleScroll }